package cn.lds.j368.dsbank.service;

import cn.lds.j368.dsbank.domain.LoanProduce;
import cn.lds.j368.dsbank.dto.RespDTO;
import cn.lds.j368.dsbank.exception.ServiceException;

import java.util.List;

public interface LoanProduceService {

    RespDTO<List<LoanProduce>> selectLoanProduceAll() throws ServiceException;

    RespDTO<LoanProduce> selectLoanProduceByProduceId(Integer produceId) throws ServiceException;

    /**
     * 添加或修改贷款产品
     * @param loanProduce
     * @return
     */
    RespDTO addOrModifyLoanProduce(LoanProduce loanProduce) throws ServiceException;


    RespDTO delLoanProduce(Integer produceId) throws ServiceException;

}
